Personal tools

Lua/Shared/BaseEventManager/Functions/Subscribe

From JC2-MP Documentation

Jump to: navigation, search

Returns    Event
Prototype    BaseEventManager:Subscribe(string event_name, function callback)
Description    Subscribe to the specified event.



Returns    Event
Prototype    BaseEventManager:Subscribe(string event_name, object instance, function callback)
Description    Subscribe to the specified event with the given object.